package com.vhall.component.entity.exam.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author song.dong
 * @date 2021-07-12 17:01
 */
@Data
public class ExamUpdateReqVo {

    @NotNull(message = "old exam id is not null")
    @ParamName("old_exam_id")
    private Integer oldExamId;

    @NotNull(message = "room id is not null")
    @ParamName("room_id")
    private String roomId;

    @NotBlank(message = "title is not null")
    @ParamName("title")
    private String title;
    @ParamName("desc")
    private String desc;
    @ParamName("extend")
    private String extend;

    @NotNull(message = "exam id is not null")
    @ParamName("exam_id")
    private Integer examId;

    @ParamName("is_public")
    private Integer isPublic;

    @ParamName("source_id")
    private Integer sourceId;

    @NotNull(message = "score is not null")
    @ParamName("score")
    private Integer score;

    @NotNull(message = "question num is not null")
    @ParamName("question_num")
    private Integer questionNum;

    @NotNull(message = "limit time is not null")
    @ParamName("limit_time")
    private Integer limitTime;
}
